<?php
include_once("./_common.php");

$sql = "SELECT *
		  FROM info_form
		 WHERE id = '$id'";
$rst = sql_query($sql);

while($row = mysql_fetch_assoc($rst))
{
	$list[] = $row;
}

$result = "";

if (count($list) == 1)
{
	$result = $list[0]['id']."<col>".$list[0]['in_name']."<col>".$list[0]['in_num']."<col>".$list[0]['in_addr']."<col>".$list[0]['in_hp']."<col>".$list[0]['in_day2_y']."<col>".$list[0]['in_day2_m']."<col>".$list[0]['in_day2_d']."<col>".$list[0]['in_sign_txt1']."<col>".$list[0]['in_sign_txt2']."<col>".$list[0]['in_sign_img1']."<col>END"."<row>";
}
else
{
	$result = "Database Error";
}

echo($result);
?>
